package figure8.GUI;

import java.awt.Toolkit;

import javax.swing.Box;
import javax.swing.ImageIcon;
import javax.swing.JFrame;
import javax.swing.JLabel;
import javax.swing.JPanel;
 
public class AboutWindow extends JFrame {
	public AboutWindow(MainWindow window)
	{
		this.setLocation(window.getFrame().getX() + 80, window.getFrame().getY() + 120);
		this.setIconImage(Toolkit.getDefaultToolkit().getImage("src/figure8/GUI/Fig8-small.png"));
		this.setAlwaysOnTop(true);
		JLabel line1 = new JLabel("We are Mobius, we bring you Figure8.");
		JLabel line2 = new JLabel("University of Bristol Computer Science.");
		JLabel line3 = new JLabel("2010-2011");
		Box column = Box.createVerticalBox();
		Box row1 = Box.createHorizontalBox();
		Box row2 = Box.createHorizontalBox();
		Box row3 = Box.createHorizontalBox();
		Box row4 = Box.createHorizontalBox();
		row1.add(line1);
		row2.add(line2);
		row3.add(line3);
		column.add(row1);
		column.add(row2);
		column.add(row3);
		JLabel imageLabel = new JLabel(new ImageIcon("src/figure8/GUI/Fig8-medium.png"));
		imageLabel.setHorizontalAlignment(JLabel.CENTER);
		row4.add(imageLabel);
		column.add(row4);
		JPanel panel = new JPanel();
		panel.add(column);
		this.add(panel);
		this.setTitle("About");
		this.pack();
		this.setVisible(true);
	}

}